package com.example.dell.ssm.contract;

import com.example.dell.ssm.model.bean.ResponseBean;
import com.example.dell.ssm.model.bean.User;
import com.jaydenxiao.common.base.BaseModel;
import com.jaydenxiao.common.base.BasePresenter;
import com.jaydenxiao.common.base.BaseView;

import rx.Observable;

/**
 * Created by dell on 2017/6/9.
 */

public interface MainContract {

    interface Model extends BaseModel {
        public Observable<ResponseBean> register(String name, String password);
    }

    interface View extends BaseView {
        void returnRegister(ResponseBean<User> userResponseBean);
    }

    public abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getRegister(final String name, final String password);
    }

}
